	$$__justFixEclipseAutoSourceCheck__$ = 
		{
			name : "com.otupia.module.application.login",
			cssList : ["/wui/modules/com/otupia/module/application/login/resource/css/style.css"],
			_element :(function()
			{
				var innerStr = "<div class=\"login_top\"></div>\n<div class=\"login_bodyarea\">\n<div id='loginBox'><div class=\"right_head\">\n<div align=\"center\">\nJoin Us For Membership\n</div>\n</div>\n<div class=\"right_textbox\">\n<label>\n<input id=\"name\" name=\"textfield2\" type=\"text\" class=\"righttextbox\" />\n</label>\n</div>\n<div class=\"right_textbox\">\n<label>\n<input name=\"textfield22\" id=\"password\" type=\"password\" class=\"righttextbox\"/>\n</label>\n</div>\n<div class=\"right_text\">\n</div>\n<div class=\"right_text\">\n<div align=\"center\">\n<a href=\"#\" id='loginSubmitButton' class=\"login\">login</a>\n</div>\n</div></div>\n</div>\n<div id=\"login_message\" class=\"login_bottom\"></div>";
				var ele = 
				dojo.create
				(
				 	"div",
					{
						innerHTML : innerStr
					}
				 );
				// dojo.body.innerHTML = ele;
				return ele;
			}
			)(),
			_login:function()
			{
				var name = dojo.byId("name").value;
				var password = dojo.byId("password").value;
				
				var userInfo = 
				{
					"name": name,
					"password":password
				};
			    
				userService.login(userInfo,dojo.hitch(this,this.onLogin));
			},
			
			onLogin:function(data)
			{
				if(data && data.id)
				{
					com.otupia.userInfo.init(data);
					dojo.byId("loginBox").innerHTML = "welcome " + com.otupia.userInfo.getUserInfo().name + "!!!";
				}
				else
				{
					dojo.byId("login_message").innerHTML = "wrong user or password!!";
				}
			},
			show : function(moduleInfo)
			{
				for(p in this.cssList)
				{
					com.otupia.ModuleUtils.loadCss(this.cssList[p]);
				}
				if(moduleInfo && moduleInfo.container)
				{
					dojo.place(this._element,dojo.byId(moduleInfo.container),"only");
					
					if(this.afterShow instanceof Function)
					{
						this.afterShow();
					}
				}
			},
			afterShow : function()
			{			
				var scope = this;
				dojo.connect(dojo.byId("loginSubmitButton"),"onclick",scope,"_login",true);
			}
		};
